package com.javafactroy.kunlong.common.web;


import com.javafactroy.kunlong.common.config.BipApolloConfig;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
//import com.javafactroy.kunlong.dxp.openfeign.IClientService;

@Slf4j
@RestController
@RequestMapping("/testconfig")
public class CommonController {

  @Autowired
  BipApolloConfig bipApolloConfig;

    @GetMapping("/testApolloConfig")
    @ResponseBody
    public String send() {
        return bipApolloConfig.toString();
    }

//    @GetMapping("/sendFeignOpen")
//    @ResponseBody
//    public String sendFeignOpen() {
//        String ret = clientService.send();
//        log.info("ret openfeign ={}", ret);
//        return ret;
//
//    }

}
